<!DOCTYPE html>
<html>
    <head>
        <title>{{$vo.title}} > {{$class['name']}} > {{:C('SITE_TITLE')}}</title>
    <meta name="keywords" content="<if condition="$vo['keyword'] neq ''">{{$class.keyword}}<else />{{:C('SITE_KEYWORDS')}}</if>" />
<meta name="description" content="<if condition="$vo['description'] neq ''">{{$class.description}}<else />{{:C('SITE_DESCRIPTION')}}</if>" />
<meta name="robots" content="all" />
<meta name="author" content="{:C('SITE_DP_AUTHOR')}" />
<link href="../Public/style/views.css" type="text/css" rel="stylesheet" />
<script>
    var checkUserUrl = '{{:U("Home/Public/checkUsername")}}';
  　var checkEmailUrl = '{{:U("Home/Public/checkEmail")}}';
    var checkVerifyUrl = '{{:U("Home/Public/checkVerify")}}';
    var verifyImgUrl = '{{:U("Home/Public/verify")}}';
</script>
<script src="__ROOT__/Public/Js/jQuery/jquery-1.10.2.min.js"></script>
<script src="../Public/js/checkReg.js"></script>

</head>
<body id="views">
<include file="Public:header" />

    <div id="position">{$position}</div>

    <div id="body">
        <div id="content">
            <div id="comment">

                <h3 class="comment_title">用户注册(<em style="color: red;">*</em>为必填项)</h3>
                <div id="comment_list"></div>
                <div id="comment_page"></div>

                <div id="comment_form" class="efbox">
                    <form method="post"action="{{:U('Home/Public/insert')}}" id="reguser" onsubmit="return checkUserReg()">
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td >
                                    <span style="color: red;" >*</span>用户名:</td>
                                <td>
                                    <input name="username" onblur="checkUsername()" id="username" class="txt" value="" style="width:280px;" />
                                    <span id="span_checkUsername"></span>
                                </td>
                            </tr>
                           <tr>
                                <td >
                                    <span style="color: red;" >*</span>密码:</td>
                                <td>
                                    <input type="password" name="password" onblur="checkPwd()" id="pwd" class="txt" value="" style="width:280px;" />
                                    <span id="span_checkPwd"></span>
                                </td>
                            </tr>
                            <tr>
                                <td >
                                    <span style="color: red;" >*</span>确认密码:</td>
                                <td>
                                    <input type="password" name="repassword" onblur="checkRepwd()" id="repwd" class="txt" value="" style="width:280px;" />
                                    <span id="span_checkRepwd"></span>
                                </td>
                            </tr>
                            <tr>
                                <td >
                                    <span style="color: red;" >*</span>邮箱:</td>
                                <td>
                                    <input name="email" onblur="checkEmail()" id="email" class="txt" value="" style="width:280px;" />
                                    <span id="span_checkEmail"></span>
                                </td>
                            </tr>

                            <tr>
                                <td >
                                    <span style="color: red;" >*</span>验证码:</td>
                                <td>
                                    <input name="verify" onblur="checkVerify()" id="verify" class="txt" value="" style="width:228px;" />
                                    <img id="verifyImg" src="{{:U('Home/Public/verify')}}" onclick="changeVerify()" class="verifyImg" alt="点击刷新验证码" title="刷新验证码"/>
                                    <span id="span_checkVerify"></span>
                                </td>
                            </tr>

                            <tr>
                                <td>&nbsp;</td>
                                <td > 
                                    <input type="submit" class="do_post_com" value="完成注册" />
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>

            </div>
        </div>

        <div id="slidebar">
            <include file="Public:slidebar" />
        </div>

        <div class="clear"></div>
    </div>

<include file="Public:footer" />

</body>
</html>